package com.szsh.aiot.hsm.mapper;

import com.szsh.aiot.hsm.dto.gateway.IBroadbandServicesInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Mapper接口
 * 
 * @author ruoyi
 * @date 2023-12-06
 */
@Mapper
public interface IBroadbandServicesInfoMapper 
{
    /**
     * 查询
     * 
     * @param broadband 宽带账号
     * @return 
     */
    IBroadbandServicesInfo selectIBroadbandServicesInfoByBroadband(@Param("broadband") String broadband);

    /**
     * 查询列表
     * 
     * @param iBroadbandServicesInfo 
     * @return 集合
     */
    List<IBroadbandServicesInfo> selectIBroadbandServicesInfoList(IBroadbandServicesInfo iBroadbandServicesInfo);


    /**
     *查询系统中所有待安装插件的账号
     */

    List<IBroadbandServicesInfo> getAllAccountForPluginInstall();

    /**
     * 新增
     * 
     * @param iBroadbandServicesInfo
     * @return 结果
     */
    int insertIBroadbandServicesInfo(IBroadbandServicesInfo iBroadbandServicesInfo);

    /**
     * 数据更新
     * 
     * @param iBroadbandServicesInfo 
     * @return 结果
     */
    int updateIBroadbandServicesInfo(IBroadbandServicesInfo iBroadbandServicesInfo);

    /**
     * 删除
     * 
     * @param broadband 宽带账号
     * @return 结果
     */
    int deleteIBroadbandServicesInfoByBroadband(@Param("broadband") String broadband);

    /**
     * 批量删除
     * 
     * @param broadbands 需要删除的数据主键集合
     * @return 结果
     */
    int deleteIBroadbandServicesInfoByBroadbands(String[] broadbands);
}
